home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / accessibility / nsPIAccessibleDocument.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  6KB  |  167 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsPIAccessibleDocument.idl
  3.  */
  4.  
  5. #ifndef __gen_nsPIAccessibleDocument_h__
  6. #define __gen_nsPIAccessibleDocument_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIAccessNode; /* forward declaration */
  18.  
  19. class nsIContent; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsPIAccessibleDocument */
  23. #define NS_PIACCESSIBLEDOCUMENT_IID_STR "eae56f75-ee68-4120-b113-10f21b75509e"
  24.  
  25. #define NS_PIACCESSIBLEDOCUMENT_IID \
  26.   {0xeae56f75, 0xee68, 0x4120, \
  27.     { 0xb1, 0x13, 0x10, 0xf2, 0x1b, 0x75, 0x50, 0x9e }}
  28.  
  29. class NS_NO_VTABLE nsPIAccessibleDocument : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_PIACCESSIBLEDOCUMENT_IID)
  33.  
  34.   /**
  35.     * Find the accessible object in the accessibility cache that 
  36.     * corresponds to aStartNode or the first ancestor of aStartNode 
  37.     * that has an accessible object associated with it.
  38.     * Clear that accessible object's parent's cache of accessible children and
  39.     * and remove the accessible object and any decendents from the accessible cache.
  40.     * New accessible objects will be created and cached again on demand.
  41.     * @param aChangeContent     The child that is changing
  42.     * @param aEvent             The event from nsIAccessibleEvent that caused the change:
  43.     *                           Must be one of: EVENT_REORDER (change),
  44.     *                                           EVENT_SHOW (make visible or create) or 
  45.     *                                           EVENT_HIDE (destroy or hide)
  46.     */
  47.   /* void invalidateCacheSubtree (in nsIContent aChangeContent, in PRUint32 aChangeEvent); */
  48.   NS_IMETHOD InvalidateCacheSubtree(nsIContent *aChangeContent, PRUint32 aChangeEvent) = 0;
  49.  
  50.   /* void cacheAccessNode (in voidPtr aUniqueID, in nsIAccessNode aAccessNode); */
  51.   NS_IMETHOD CacheAccessNode(void * aUniqueID, nsIAccessNode *aAccessNode) = 0;
  52.  
  53.   /* void destroy (); */
  54.   NS_IMETHOD Destroy(void) = 0;
  55.  
  56.   /* void flushPendingEvents (); */
  57.   NS_IMETHOD FlushPendingEvents(void) = 0;
  58.  
  59.   /* void fireDocLoadingEvent (in boolean isFinished); */
  60.   NS_IMETHOD FireDocLoadingEvent(PRBool isFinished) = 0;
  61.  
  62.   /* void fireAnchorJumpEvent (); */
  63.   NS_IMETHOD FireAnchorJumpEvent(void) = 0;
  64.  
  65. };
  66.  
  67. /* Use this macro when declaring classes that implement this interface. */
  68. #define NS_DECL_NSPIACCESSIBLEDOCUMENT \
  69.   NS_IMETHOD InvalidateCacheSubtree(nsIContent *aChangeContent, PRUint32 aChangeEvent); \
  70.   NS_IMETHOD CacheAccessNode(void * aUniqueID, nsIAccessNode *aAccessNode); \
  71.   NS_IMETHOD Destroy(void); \
  72.   NS_IMETHOD FlushPendingEvents(void); \
  73.   NS_IMETHOD FireDocLoadingEvent(PRBool isFinished); \
  74.   NS_IMETHOD FireAnchorJumpEvent(void); 
  75.  
  76. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  77. #define NS_FORWARD_NSPIACCESSIBLEDOCUMENT(_to) \
  78.   NS_IMETHOD InvalidateCacheSubtree(nsIContent *aChangeContent, PRUint32 aChangeEvent) { return _to InvalidateCacheSubtree(aChangeContent, aChangeEvent); } \
  79.   NS_IMETHOD CacheAccessNode(void * aUniqueID, nsIAccessNode *aAccessNode) { return _to CacheAccessNode(aUniqueID, aAccessNode); } \
  80.   NS_IMETHOD Destroy(void) { return _to Destroy(); } \
  81.   NS_IMETHOD FlushPendingEvents(void) { return _to FlushPendingEvents(); } \
  82.   NS_IMETHOD FireDocLoadingEvent(PRBool isFinished) { return _to FireDocLoadingEvent(isFinished); } \
  83.   NS_IMETHOD FireAnchorJumpEvent(void) { return _to FireAnchorJumpEvent(); } 
  84.  
  85. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  86. #define NS_FORWARD_SAFE_NSPIACCESSIBLEDOCUMENT(_to) \
  87.   NS_IMETHOD InvalidateCacheSubtree(nsIContent *aChangeContent, PRUint32 aChangeEvent) { return !_to ? NS_ERROR_NULL_POINTER : _to->InvalidateCacheSubtree(aChangeContent, aChangeEvent); } \
  88.   NS_IMETHOD CacheAccessNode(void * aUniqueID, nsIAccessNode *aAccessNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->CacheAccessNode(aUniqueID, aAccessNode); } \
  89.   NS_IMETHOD Destroy(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Destroy(); } \
  90.   NS_IMETHOD FlushPendingEvents(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->FlushPendingEvents(); } \
  91.   NS_IMETHOD FireDocLoadingEvent(PRBool isFinished) { return !_to ? NS_ERROR_NULL_POINTER : _to->FireDocLoadingEvent(isFinished); } \
  92.   NS_IMETHOD FireAnchorJumpEvent(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->FireAnchorJumpEvent(); } 
  93.  
  94. #if 0
  95. /* Use the code below as a template for the implementation class for this interface. */
  96.  
  97. /* Header file */
  98. class _MYCLASS_ : public nsPIAccessibleDocument
  99. {
  100. public:
  101.   NS_DECL_ISUPPORTS
  102.   NS_DECL_NSPIACCESSIBLEDOCUMENT
  103.  
  104.   _MYCLASS_();
  105.  
  106. private:
  107.   ~_MYCLASS_();
  108.  
  109. protected:
  110.   /* additional members */
  111. };
  112.  
  113. /* Implementation file */
  114. NS_IMPL_ISUPPORTS1(_MYCLASS_, nsPIAccessibleDocument)
  115.  
  116. _MYCLASS_::_MYCLASS_()
  117. {
  118.   /* member initializers and constructor code */
  119. }
  120.  
  121. _MYCLASS_::~_MYCLASS_()
  122. {
  123.   /* destructor code */
  124. }
  125.  
  126. /* void invalidateCacheSubtree (in nsIContent aChangeContent, in PRUint32 aChangeEvent); */
  127. NS_IMETHODIMP _MYCLASS_::InvalidateCacheSubtree(nsIContent *aChangeContent, PRUint32 aChangeEvent)
  128. {
  129.     return NS_ERROR_NOT_IMPLEMENTED;
  130. }
  131.  
  132. /* void cacheAccessNode (in voidPtr aUniqueID, in nsIAccessNode aAccessNode); */
  133. NS_IMETHODIMP _MYCLASS_::CacheAccessNode(void * aUniqueID, nsIAccessNode *aAccessNode)
  134. {
  135.     return NS_ERROR_NOT_IMPLEMENTED;
  136. }
  137.  
  138. /* void destroy (); */
  139. NS_IMETHODIMP _MYCLASS_::Destroy()
  140. {
  141.     return NS_ERROR_NOT_IMPLEMENTED;
  142. }
  143.  
  144. /* void flushPendingEvents (); */
  145. NS_IMETHODIMP _MYCLASS_::FlushPendingEvents()
  146. {
  147.     return NS_ERROR_NOT_IMPLEMENTED;
  148. }
  149.  
  150. /* void fireDocLoadingEvent (in boolean isFinished); */
  151. NS_IMETHODIMP _MYCLASS_::FireDocLoadingEvent(PRBool isFinished)
  152. {
  153.     return NS_ERROR_NOT_IMPLEMENTED;
  154. }
  155.  
  156. /* void fireAnchorJumpEvent (); */
  157. NS_IMETHODIMP _MYCLASS_::FireAnchorJumpEvent()
  158. {
  159.     return NS_ERROR_NOT_IMPLEMENTED;
  160. }
  161.  
  162. /* End of implementation class template. */
  163. #endif
  164.  
  165.  
  166. #endif /* __gen_nsPIAccessibleDocument_h__ */
  167.